]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st-theme-node: Fix lookup of time values
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 3 Feb 2017 14:57:38 +0000 (15:57 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 6 Feb 2017 13:30:18 +0000 (14:30 +0100)
We have a time when the content type is seconds *or* milliseconds,
not seconds *and* milliseconds. Whoops ...

https://bugzilla.gnome.org/show_bug.cgi?id=778145

src/st/st-theme-node.c

index 5582c7589387879dceacf280721aa2eda76a7d11..6608efb9d604bb4b960c5f40baf2510ae1ad96af 100644 (file)
@@ -857,7 +857,7 @@ st_theme_node_lookup_time (StThemeNode *node,
           if (term->type != TERM_NUMBER)
             continue;
 
-          if (term->content.num->type != NUM_TIME_S ||
+          if (term->content.num->type != NUM_TIME_S &&
               term->content.num->type != NUM_TIME_MS)
             continue;